package org.like.sso.base.util.string;

public class StringUtil {
	public static String pickURLPar(String url,String par){
		if(url.indexOf("?")>0){
			url=url+"&"+par;
		}else{
			url=url+"?"+par;
		}
		return url;
	}
	public static void main(String args[]){
		System.out.println(pickURLPar("abc?a=2","3"));
		System.out.println(pickURLPar("abc2","3"));
	}

}
